package com.heima.article;

import com.heima.article.mapper.ApArticleMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;

import java.text.ParseException;
import java.util.List;

/**
 * @author huan
 * @serial 每天一百行, 致敬未来的自己
 * @Description
 */
@SpringBootTest
public class test01 {
    @Value("${file.oss.web-site}")
    private String webSite;

    @Autowired
    private ApArticleMapper apArticleMapper;
    @Test
    public void test001() throws ParseException {
        ArticleHomeDto dto = new ArticleHomeDto();
        dto.setSize(10);
        dto.setTag("6");
        List<ApArticle> list = apArticleMapper.loadArticleList(dto, (short) 1);
        System.out.println(list);
    }

}
